package com.shop.dingdongshoppingapi.service.intf;

import com.shop.dingdongshoppingapi.dto.LikeToCarDto;
import com.shop.dingdongshoppingapi.dto.ShopCarAddDto;
import com.shop.dingdongshoppingapi.entity.ShopCar;
import com.shop.dingdongshoppingapi.vo.R;

import java.util.ArrayList;

public interface ShopCarService {
	/*
	* 查询此用户已加购物车订单*/
	R checkShopCar(int token);

	/*
	* 删除购物车的单个商品*/
	R delShopById(int id);

	/*
	* 随机四个id查询数据来插入 猜你喜欢*/
	R fourRandom();

	/*
	* 从猜你喜欢往购物车添加订单*/
	R addLikeToCar(LikeToCarDto likeToCarDto, int token);

	/*
	* 点击增删数量按钮  改变  数据库商品数量*/
	R updateShopCarNum(ShopCar shopCar);
	R add(ShopCarAddDto addDto, Integer uid);

}
